home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / GregorianCalendarDate.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  26KB  |  603 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: GregorianCalendarDate.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_TGregorianCalendarDate_h
  11. #define SOM_TGregorianCalendarDate_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <TimeObjects.h>
  18.  
  19. #include <som.h>
  20.  
  21. /*
  22.  * -- This emitter treats Method Tokens as Thunks by default.
  23.  * -- Use the sc modifier "nothunks" to change this default
  24.  */
  25. #undef somresolve_
  26. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  27.  
  28. /*
  29.  * Define the class name as an object type
  30.  */
  31. #ifndef TGregorianCalendarDate
  32. #define TGregorianCalendarDate SOMObject
  33. #endif
  34. #include <CalendarDate.h>
  35.  
  36. /*
  37.  * Start of user-defined types:
  38.  */
  39. #ifndef SOMClass
  40.     #define SOMClass SOMObject
  41. #endif /* SOMClass */
  42. #ifndef SOMObject
  43.     #define SOMObject SOMObject
  44. #endif /* SOMObject */
  45. #define TGregorianCalendarDate_kGregorianValidateDayMask 1 /* 0x00000001 */
  46. #define TGregorianCalendarDate_kGregorianValidateMonthMask 2 /* 0x00000002 */
  47. #define TGregorianCalendarDate_kGregorianValidateYearMask 4 /* 0x00000004 */
  48. #define TGregorianCalendarDate_kGregorianValidateSecondsMask 8 /* 0x00000008 */
  49. #define TGregorianCalendarDate_kGregorianValidateMinutesMask 16 /* 0x00000010 */
  50. #define TGregorianCalendarDate_kGregorianValidateHoursMask 32 /* 0x00000020 */
  51. #define TGregorianCalendarDate_kGregorianValidateDayOfWeekMask 64 /* 0x00000040 */
  52. #define TGregorianCalendarDate_kGregorianValidateWeekOfYearMask 128 /* 0x00000080 */
  53. #define TGregorianCalendarDate_kGregorianValidateDayOfYearMask 256 /* 0x00000100 */
  54. #define TGregorianCalendarDate_kGregorianValidateAllMask 511 /* 0x000001FF */
  55.  
  56. #ifndef SOM_DONT_USE_SHORT_NAMES
  57. #ifndef SOMTGD_kGregorianValidateDayMask
  58.     #ifdef kGregorianValidateDayMask
  59.         #undef kGregorianValidateDayMask
  60.         #define SOMTGD_kGregorianValidateDayMask 1
  61.     #else
  62.         #define kGregorianValidateDayMask TGregorianCalendarDate_kGregorianValidateDayMask
  63.     #endif /* kGregorianValidateDayMask */
  64. #endif /* SOMTGD_kGregorianValidateDayMask */
  65. #ifndef SOMTGD_kGregorianValidateMonthMask
  66.     #ifdef kGregorianValidateMonthMask
  67.         #undef kGregorianValidateMonthMask
  68.         #define SOMTGD_kGregorianValidateMonthMask 1
  69.     #else
  70.         #define kGregorianValidateMonthMask TGregorianCalendarDate_kGregorianValidateMonthMask
  71.     #endif /* kGregorianValidateMonthMask */
  72. #endif /* SOMTGD_kGregorianValidateMonthMask */
  73. #ifndef SOMTGD_kGregorianValidateYearMask
  74.     #ifdef kGregorianValidateYearMask
  75.         #undef kGregorianValidateYearMask
  76.         #define SOMTGD_kGregorianValidateYearMask 1
  77.     #else
  78.         #define kGregorianValidateYearMask TGregorianCalendarDate_kGregorianValidateYearMask
  79.     #endif /* kGregorianValidateYearMask */
  80. #endif /* SOMTGD_kGregorianValidateYearMask */
  81. #ifndef SOMTGD_kGregorianValidateSecondsMask
  82.     #ifdef kGregorianValidateSecondsMask
  83.         #undef kGregorianValidateSecondsMask
  84.         #define SOMTGD_kGregorianValidateSecondsMask 1
  85.     #else
  86.         #define kGregorianValidateSecondsMask TGregorianCalendarDate_kGregorianValidateSecondsMask
  87.     #endif /* kGregorianValidateSecondsMask */
  88. #endif /* SOMTGD_kGregorianValidateSecondsMask */
  89. #ifndef SOMTGD_kGregorianValidateMinutesMask
  90.     #ifdef kGregorianValidateMinutesMask
  91.         #undef kGregorianValidateMinutesMask
  92.         #define SOMTGD_kGregorianValidateMinutesMask 1
  93.     #else
  94.         #define kGregorianValidateMinutesMask TGregorianCalendarDate_kGregorianValidateMinutesMask
  95.     #endif /* kGregorianValidateMinutesMask */
  96. #endif /* SOMTGD_kGregorianValidateMinutesMask */
  97. #ifndef SOMTGD_kGregorianValidateHoursMask
  98.     #ifdef kGregorianValidateHoursMask
  99.         #undef kGregorianValidateHoursMask
  100.         #define SOMTGD_kGregorianValidateHoursMask 1
  101.     #else
  102.         #define kGregorianValidateHoursMask TGregorianCalendarDate_kGregorianValidateHoursMask
  103.     #endif /* kGregorianValidateHoursMask */
  104. #endif /* SOMTGD_kGregorianValidateHoursMask */
  105. #ifndef SOMTGD_kGregorianValidateDayOfWeekMask
  106.     #ifdef kGregorianValidateDayOfWeekMask
  107.         #undef kGregorianValidateDayOfWeekMask
  108.         #define SOMTGD_kGregorianValidateDayOfWeekMask 1
  109.     #else
  110.         #define kGregorianValidateDayOfWeekMask TGregorianCalendarDate_kGregorianValidateDayOfWeekMask
  111.     #endif /* kGregorianValidateDayOfWeekMask */
  112. #endif /* SOMTGD_kGregorianValidateDayOfWeekMask */
  113. #ifndef SOMTGD_kGregorianValidateWeekOfYearMask
  114.     #ifdef kGregorianValidateWeekOfYearMask
  115.         #undef kGregorianValidateWeekOfYearMask
  116.         #define SOMTGD_kGregorianValidateWeekOfYearMask 1
  117.     #else
  118.         #define kGregorianValidateWeekOfYearMask TGregorianCalendarDate_kGregorianValidateWeekOfYearMask
  119.     #endif /* kGregorianValidateWeekOfYearMask */
  120. #endif /* SOMTGD_kGregorianValidateWeekOfYearMask */
  121. #ifndef SOMTGD_kGregorianValidateDayOfYearMask
  122.     #ifdef kGregorianValidateDayOfYearMask
  123.         #undef kGregorianValidateDayOfYearMask
  124.         #define SOMTGD_kGregorianValidateDayOfYearMask 1
  125.     #else
  126.         #define kGregorianValidateDayOfYearMask TGregorianCalendarDate_kGregorianValidateDayOfYearMask
  127.     #endif /* kGregorianValidateDayOfYearMask */
  128. #endif /* SOMTGD_kGregorianValidateDayOfYearMask */
  129. #ifndef SOMTGD_kGregorianValidateAllMask
  130.     #ifdef kGregorianValidateAllMask
  131.         #undef kGregorianValidateAllMask
  132.         #define SOMTGD_kGregorianValidateAllMask 1
  133.     #else
  134.         #define kGregorianValidateAllMask TGregorianCalendarDate_kGregorianValidateAllMask
  135.     #endif /* kGregorianValidateAllMask */
  136. #endif /* SOMTGD_kGregorianValidateAllMask */
  137. #endif /* SOM_DONT_USE_SHORT_NAMES */
  138.  
  139. /*
  140.  * End of user-defined types.
  141.  */
  142.  
  143. #define TGregorianCalendarDate_MajorVersion 1
  144. #define TGregorianCalendarDate_MinorVersion 1
  145.  
  146. /*
  147.  * External name shortening if required
  148.  */
  149. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  150. #define TGregorianCalendarDateClassData d
  151. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  152. /*--------------Migration------------*/
  153.  
  154. #ifdef OLDIBMSOMAPISUPPORT
  155. #define TGregorianCalendarDate_classObj somNewClassReference(TGregorianCalendarDate)
  156. #define _TGregorianCalendarDate TGregorianCalendarDate_classObj
  157. #define TGregorianCalendarDateCClassData TGregorianCalendarDateClassData
  158. #define TGregorianCalendarDateNewClass(major,minor) somNewVersionedClassReference(TGregorianCalendarDate,major,minor)
  159. #endif
  160.  
  161. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  162. #define TGregorianCalendarDateMetaClass SOMClass
  163.  
  164. #if PRAGMA_ALIGN_SUPPORTED
  165. #  pragma options align=power
  166. #endif
  167.  
  168. /*
  169.  * Declare the class data structure
  170.  */
  171. SOMEXTERN struct TGregorianCalendarDateClassDataStructure {
  172. #ifdef OLDIBMSOMAPISUPPORT
  173.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  174. #else
  175.     long zero;
  176. #endif
  177.     somStaticClassInfo *sci;
  178.     somDToken        instanceDataToken;
  179.     long reserved [3];
  180.     somMToken _get_fMonth;
  181.     somMToken _set_fMonth;
  182.     somMToken _get_fDay;
  183.     somMToken _set_fDay;
  184.     somMToken _get_fYear;
  185.     somMToken _set_fYear;
  186.     somMToken _get_fHours;
  187.     somMToken _set_fHours;
  188.     somMToken _get_fMinutes;
  189.     somMToken _set_fMinutes;
  190.     somMToken _get_fSeconds;
  191.     somMToken _set_fSeconds;
  192.     somMToken _get_fDayOfWeek;
  193.     somMToken _set_fDayOfWeek;
  194.     somMToken _get_fDayOfYear;
  195.     somMToken _set_fDayOfYear;
  196.     somMToken _get_fWeekOfYear;
  197.     somMToken _set_fWeekOfYear;
  198.     somMToken GregorianDateGetMonth;
  199.     somMToken GregorianDateSetMonth;
  200.     somMToken GregorianDateGetDay;
  201.     somMToken GregorianDateSetDay;
  202.     somMToken GregorianDateGetYear;
  203.     somMToken GregorianDateSetYear;
  204.     somMToken GregorianDateGetHours;
  205.     somMToken GregorianDateSetHours;
  206.     somMToken GregorianDateGetMinutes;
  207.     somMToken GregorianDateSetMinutes;
  208.     somMToken GregorianDateGetSeconds;
  209.     somMToken GregorianDateSetSeconds;
  210.     somMToken GregorianDateGetDayOfWeek;
  211.     somMToken GregorianDateSetDayOfWeek;
  212.     somMToken GregorianDateGetDayOfYear;
  213.     somMToken GregorianDateSetDayOfYear;
  214.     somMToken GregorianDateGetWeekOfYear;
  215.     somMToken GregorianDateSetWeekOfYear;
  216. } SOMDLINK TGregorianCalendarDateClassData;
  217.  
  218. #if PRAGMA_ALIGN_SUPPORTED
  219. #  pragma options align=reset
  220. #endif
  221.  
  222. #if !defined(TGregorianCalendarDate_Class_Source) && !defined(SOM_Module_gregoriancalendardate_Source)
  223. #if PRAGMA_IMPORT_SUPPORTED
  224. #pragma import list TGregorianCalendarDateClassData
  225. #endif
  226. #endif
  227.  
  228.  
  229. /*
  230.  * New macro for TGregorianCalendarDate
  231.  */
  232. #define TGregorianCalendarDateNew() somNewObject(TGregorianCalendarDate)
  233.  
  234. /*
  235.  * Override method: somInit
  236.  */
  237. #define TGregorianCalendarDate_somInit(somSelf) \
  238.     SOMObject_somInit(somSelf)
  239.  
  240. /*
  241.  * Override method: ValidateCalendarDate
  242.  */
  243. #define TGregorianCalendarDate_ValidateCalendarDate(somSelf,ev,fieldSelector) \
  244.     TCalendarDate_ValidateCalendarDate(somSelf,ev,fieldSelector)
  245.  
  246. /*
  247.  * New Method: GregorianDateGetMonth
  248.  */
  249. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetMonth)(TGregorianCalendarDate *somSelf, Environment *ev);
  250. #define somMD_TGregorianCalendarDate_GregorianDateGetMonth "::TGregorianCalendarDate::GregorianDateGetMonth"
  251. #define TGregorianCalendarDate_GregorianDateGetMonth(somSelf,ev) \
  252.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetMonth) \
  253.     (somSelf,ev))
  254. #ifndef SOMGD_GregorianDateGetMonth
  255.     #if defined _GregorianDateGetMonth || defined __GregorianDateGetMonth
  256.         #undef _GregorianDateGetMonth
  257.         #undef __GregorianDateGetMonth
  258.         #define SOMGD_GregorianDateGetMonth 1
  259.     #else
  260.         #define _GregorianDateGetMonth TGregorianCalendarDate_GregorianDateGetMonth
  261.     #endif /* _GregorianDateGetMonth */
  262. #endif /* SOMGD_GregorianDateGetMonth */
  263.  
  264. /*
  265.  * New Method: GregorianDateSetMonth
  266.  */
  267. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetMonth)(TGregorianCalendarDate *somSelf, Environment *ev,
  268.         UInt16 month);
  269. #define somMD_TGregorianCalendarDate_GregorianDateSetMonth "::TGregorianCalendarDate::GregorianDateSetMonth"
  270. #define TGregorianCalendarDate_GregorianDateSetMonth(somSelf,ev,month) \
  271.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetMonth) \
  272.     (somSelf,ev,month))
  273. #ifndef SOMGD_GregorianDateSetMonth
  274.     #if defined _GregorianDateSetMonth || defined __GregorianDateSetMonth
  275.         #undef _GregorianDateSetMonth
  276.         #undef __GregorianDateSetMonth
  277.         #define SOMGD_GregorianDateSetMonth 1
  278.     #else
  279.         #define _GregorianDateSetMonth TGregorianCalendarDate_GregorianDateSetMonth
  280.     #endif /* _GregorianDateSetMonth */
  281. #endif /* SOMGD_GregorianDateSetMonth */
  282.  
  283. /*
  284.  * New Method: GregorianDateGetDay
  285.  */
  286. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetDay)(TGregorianCalendarDate *somSelf, Environment *ev);
  287. #define somMD_TGregorianCalendarDate_GregorianDateGetDay "::TGregorianCalendarDate::GregorianDateGetDay"
  288. #define TGregorianCalendarDate_GregorianDateGetDay(somSelf,ev) \
  289.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetDay) \
  290.     (somSelf,ev))
  291. #ifndef SOMGD_GregorianDateGetDay
  292.     #if defined _GregorianDateGetDay || defined __GregorianDateGetDay
  293.         #undef _GregorianDateGetDay
  294.         #undef __GregorianDateGetDay
  295.         #define SOMGD_GregorianDateGetDay 1
  296.     #else
  297.         #define _GregorianDateGetDay TGregorianCalendarDate_GregorianDateGetDay
  298.     #endif /* _GregorianDateGetDay */
  299. #endif /* SOMGD_GregorianDateGetDay */
  300.  
  301. /*
  302.  * New Method: GregorianDateSetDay
  303.  */
  304. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetDay)(TGregorianCalendarDate *somSelf, Environment *ev,
  305.         UInt16 day);
  306. #define somMD_TGregorianCalendarDate_GregorianDateSetDay "::TGregorianCalendarDate::GregorianDateSetDay"
  307. #define TGregorianCalendarDate_GregorianDateSetDay(somSelf,ev,day) \
  308.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetDay) \
  309.     (somSelf,ev,day))
  310. #ifndef SOMGD_GregorianDateSetDay
  311.     #if defined _GregorianDateSetDay || defined __GregorianDateSetDay
  312.         #undef _GregorianDateSetDay
  313.         #undef __GregorianDateSetDay
  314.         #define SOMGD_GregorianDateSetDay 1
  315.     #else
  316.         #define _GregorianDateSetDay TGregorianCalendarDate_GregorianDateSetDay
  317.     #endif /* _GregorianDateSetDay */
  318. #endif /* SOMGD_GregorianDateSetDay */
  319.  
  320. /*
  321.  * New Method: GregorianDateGetYear
  322.  */
  323. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  324. #define somMD_TGregorianCalendarDate_GregorianDateGetYear "::TGregorianCalendarDate::GregorianDateGetYear"
  325. #define TGregorianCalendarDate_GregorianDateGetYear(somSelf,ev) \
  326.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetYear) \
  327.     (somSelf,ev))
  328. #ifndef SOMGD_GregorianDateGetYear
  329.     #if defined _GregorianDateGetYear || defined __GregorianDateGetYear
  330.         #undef _GregorianDateGetYear
  331.         #undef __GregorianDateGetYear
  332.         #define SOMGD_GregorianDateGetYear 1
  333.     #else
  334.         #define _GregorianDateGetYear TGregorianCalendarDate_GregorianDateGetYear
  335.     #endif /* _GregorianDateGetYear */
  336. #endif /* SOMGD_GregorianDateGetYear */
  337.  
  338. /*
  339.  * New Method: GregorianDateSetYear
  340.  */
  341. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  342.         UInt16 year);
  343. #define somMD_TGregorianCalendarDate_GregorianDateSetYear "::TGregorianCalendarDate::GregorianDateSetYear"
  344. #define TGregorianCalendarDate_GregorianDateSetYear(somSelf,ev,year) \
  345.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetYear) \
  346.     (somSelf,ev,year))
  347. #ifndef SOMGD_GregorianDateSetYear
  348.     #if defined _GregorianDateSetYear || defined __GregorianDateSetYear
  349.         #undef _GregorianDateSetYear
  350.         #undef __GregorianDateSetYear
  351.         #define SOMGD_GregorianDateSetYear 1
  352.     #else
  353.         #define _GregorianDateSetYear TGregorianCalendarDate_GregorianDateSetYear
  354.     #endif /* _GregorianDateSetYear */
  355. #endif /* SOMGD_GregorianDateSetYear */
  356.  
  357. /*
  358.  * New Method: GregorianDateGetHours
  359.  */
  360. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetHours)(TGregorianCalendarDate *somSelf, Environment *ev);
  361. #define somMD_TGregorianCalendarDate_GregorianDateGetHours "::TGregorianCalendarDate::GregorianDateGetHours"
  362. #define TGregorianCalendarDate_GregorianDateGetHours(somSelf,ev) \
  363.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetHours) \
  364.     (somSelf,ev))
  365. #ifndef SOMGD_GregorianDateGetHours
  366.     #if defined _GregorianDateGetHours || defined __GregorianDateGetHours
  367.         #undef _GregorianDateGetHours
  368.         #undef __GregorianDateGetHours
  369.         #define SOMGD_GregorianDateGetHours 1
  370.     #else
  371.         #define _GregorianDateGetHours TGregorianCalendarDate_GregorianDateGetHours
  372.     #endif /* _GregorianDateGetHours */
  373. #endif /* SOMGD_GregorianDateGetHours */
  374.  
  375. /*
  376.  * New Method: GregorianDateSetHours
  377.  */
  378. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetHours)(TGregorianCalendarDate *somSelf, Environment *ev,
  379.         UInt16 hours);
  380. #define somMD_TGregorianCalendarDate_GregorianDateSetHours "::TGregorianCalendarDate::GregorianDateSetHours"
  381. #define TGregorianCalendarDate_GregorianDateSetHours(somSelf,ev,hours) \
  382.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetHours) \
  383.     (somSelf,ev,hours))
  384. #ifndef SOMGD_GregorianDateSetHours
  385.     #if defined _GregorianDateSetHours || defined __GregorianDateSetHours
  386.         #undef _GregorianDateSetHours
  387.         #undef __GregorianDateSetHours
  388.         #define SOMGD_GregorianDateSetHours 1
  389.     #else
  390.         #define _GregorianDateSetHours TGregorianCalendarDate_GregorianDateSetHours
  391.     #endif /* _GregorianDateSetHours */
  392. #endif /* SOMGD_GregorianDateSetHours */
  393.  
  394. /*
  395.  * New Method: GregorianDateGetMinutes
  396.  */
  397. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetMinutes)(TGregorianCalendarDate *somSelf, Environment *ev);
  398. #define somMD_TGregorianCalendarDate_GregorianDateGetMinutes "::TGregorianCalendarDate::GregorianDateGetMinutes"
  399. #define TGregorianCalendarDate_GregorianDateGetMinutes(somSelf,ev) \
  400.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetMinutes) \
  401.     (somSelf,ev))
  402. #ifndef SOMGD_GregorianDateGetMinutes
  403.     #if defined _GregorianDateGetMinutes || defined __GregorianDateGetMinutes
  404.         #undef _GregorianDateGetMinutes
  405.         #undef __GregorianDateGetMinutes
  406.         #define SOMGD_GregorianDateGetMinutes 1
  407.     #else
  408.         #define _GregorianDateGetMinutes TGregorianCalendarDate_GregorianDateGetMinutes
  409.     #endif /* _GregorianDateGetMinutes */
  410. #endif /* SOMGD_GregorianDateGetMinutes */
  411.  
  412. /*
  413.  * New Method: GregorianDateSetMinutes
  414.  */
  415. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetMinutes)(TGregorianCalendarDate *somSelf, Environment *ev,
  416.         UInt16 minutes);
  417. #define somMD_TGregorianCalendarDate_GregorianDateSetMinutes "::TGregorianCalendarDate::GregorianDateSetMinutes"
  418. #define TGregorianCalendarDate_GregorianDateSetMinutes(somSelf,ev,minutes) \
  419.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetMinutes) \
  420.     (somSelf,ev,minutes))
  421. #ifndef SOMGD_GregorianDateSetMinutes
  422.     #if defined _GregorianDateSetMinutes || defined __GregorianDateSetMinutes
  423.         #undef _GregorianDateSetMinutes
  424.         #undef __GregorianDateSetMinutes
  425.         #define SOMGD_GregorianDateSetMinutes 1
  426.     #else
  427.         #define _GregorianDateSetMinutes TGregorianCalendarDate_GregorianDateSetMinutes
  428.     #endif /* _GregorianDateSetMinutes */
  429. #endif /* SOMGD_GregorianDateSetMinutes */
  430.  
  431. /*
  432.  * New Method: GregorianDateGetSeconds
  433.  */
  434. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetSeconds)(TGregorianCalendarDate *somSelf, Environment *ev);
  435. #define somMD_TGregorianCalendarDate_GregorianDateGetSeconds "::TGregorianCalendarDate::GregorianDateGetSeconds"
  436. #define TGregorianCalendarDate_GregorianDateGetSeconds(somSelf,ev) \
  437.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetSeconds) \
  438.     (somSelf,ev))
  439. #ifndef SOMGD_GregorianDateGetSeconds
  440.     #if defined _GregorianDateGetSeconds || defined __GregorianDateGetSeconds
  441.         #undef _GregorianDateGetSeconds
  442.         #undef __GregorianDateGetSeconds
  443.         #define SOMGD_GregorianDateGetSeconds 1
  444.     #else
  445.         #define _GregorianDateGetSeconds TGregorianCalendarDate_GregorianDateGetSeconds
  446.     #endif /* _GregorianDateGetSeconds */
  447. #endif /* SOMGD_GregorianDateGetSeconds */
  448.  
  449. /*
  450.  * New Method: GregorianDateSetSeconds
  451.  */
  452. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetSeconds)(TGregorianCalendarDate *somSelf, Environment *ev,
  453.         UInt16 seconds);
  454. #define somMD_TGregorianCalendarDate_GregorianDateSetSeconds "::TGregorianCalendarDate::GregorianDateSetSeconds"
  455. #define TGregorianCalendarDate_GregorianDateSetSeconds(somSelf,ev,seconds) \
  456.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetSeconds) \
  457.     (somSelf,ev,seconds))
  458. #ifndef SOMGD_GregorianDateSetSeconds
  459.     #if defined _GregorianDateSetSeconds || defined __GregorianDateSetSeconds
  460.         #undef _GregorianDateSetSeconds
  461.         #undef __GregorianDateSetSeconds
  462.         #define SOMGD_GregorianDateSetSeconds 1
  463.     #else
  464.         #define _GregorianDateSetSeconds TGregorianCalendarDate_GregorianDateSetSeconds
  465.     #endif /* _GregorianDateSetSeconds */
  466. #endif /* SOMGD_GregorianDateSetSeconds */
  467.  
  468. /*
  469.  * New Method: GregorianDateGetDayOfWeek
  470.  */
  471. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetDayOfWeek)(TGregorianCalendarDate *somSelf, Environment *ev);
  472. #define somMD_TGregorianCalendarDate_GregorianDateGetDayOfWeek "::TGregorianCalendarDate::GregorianDateGetDayOfWeek"
  473. #define TGregorianCalendarDate_GregorianDateGetDayOfWeek(somSelf,ev) \
  474.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetDayOfWeek) \
  475.     (somSelf,ev))
  476. #ifndef SOMGD_GregorianDateGetDayOfWeek
  477.     #if defined _GregorianDateGetDayOfWeek || defined __GregorianDateGetDayOfWeek
  478.         #undef _GregorianDateGetDayOfWeek
  479.         #undef __GregorianDateGetDayOfWeek
  480.         #define SOMGD_GregorianDateGetDayOfWeek 1
  481.     #else
  482.         #define _GregorianDateGetDayOfWeek TGregorianCalendarDate_GregorianDateGetDayOfWeek
  483.     #endif /* _GregorianDateGetDayOfWeek */
  484. #endif /* SOMGD_GregorianDateGetDayOfWeek */
  485.  
  486. /*
  487.  * New Method: GregorianDateSetDayOfWeek
  488.  */
  489. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetDayOfWeek)(TGregorianCalendarDate *somSelf, Environment *ev,
  490.         UInt16 dayOfWeek);
  491. #define somMD_TGregorianCalendarDate_GregorianDateSetDayOfWeek "::TGregorianCalendarDate::GregorianDateSetDayOfWeek"
  492. #define TGregorianCalendarDate_GregorianDateSetDayOfWeek(somSelf,ev,dayOfWeek) \
  493.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetDayOfWeek) \
  494.     (somSelf,ev,dayOfWeek))
  495. #ifndef SOMGD_GregorianDateSetDayOfWeek
  496.     #if defined _GregorianDateSetDayOfWeek || defined __GregorianDateSetDayOfWeek
  497.         #undef _GregorianDateSetDayOfWeek
  498.         #undef __GregorianDateSetDayOfWeek
  499.         #define SOMGD_GregorianDateSetDayOfWeek 1
  500.     #else
  501.         #define _GregorianDateSetDayOfWeek TGregorianCalendarDate_GregorianDateSetDayOfWeek
  502.     #endif /* _GregorianDateSetDayOfWeek */
  503. #endif /* SOMGD_GregorianDateSetDayOfWeek */
  504.  
  505. /*
  506.  * New Method: GregorianDateGetDayOfYear
  507.  */
  508. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetDayOfYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  509. #define somMD_TGregorianCalendarDate_GregorianDateGetDayOfYear "::TGregorianCalendarDate::GregorianDateGetDayOfYear"
  510. #define TGregorianCalendarDate_GregorianDateGetDayOfYear(somSelf,ev) \
  511.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetDayOfYear) \
  512.     (somSelf,ev))
  513. #ifndef SOMGD_GregorianDateGetDayOfYear
  514.     #if defined _GregorianDateGetDayOfYear || defined __GregorianDateGetDayOfYear
  515.         #undef _GregorianDateGetDayOfYear
  516.         #undef __GregorianDateGetDayOfYear
  517.         #define SOMGD_GregorianDateGetDayOfYear 1
  518.     #else
  519.         #define _GregorianDateGetDayOfYear TGregorianCalendarDate_GregorianDateGetDayOfYear
  520.     #endif /* _GregorianDateGetDayOfYear */
  521. #endif /* SOMGD_GregorianDateGetDayOfYear */
  522.  
  523. /*
  524.  * New Method: GregorianDateSetDayOfYear
  525.  */
  526. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetDayOfYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  527.         UInt16 dayOfYear);
  528. #define somMD_TGregorianCalendarDate_GregorianDateSetDayOfYear "::TGregorianCalendarDate::GregorianDateSetDayOfYear"
  529. #define TGregorianCalendarDate_GregorianDateSetDayOfYear(somSelf,ev,dayOfYear) \
  530.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetDayOfYear) \
  531.     (somSelf,ev,dayOfYear))
  532. #ifndef SOMGD_GregorianDateSetDayOfYear
  533.     #if defined _GregorianDateSetDayOfYear || defined __GregorianDateSetDayOfYear
  534.         #undef _GregorianDateSetDayOfYear
  535.         #undef __GregorianDateSetDayOfYear
  536.         #define SOMGD_GregorianDateSetDayOfYear 1
  537.     #else
  538.         #define _GregorianDateSetDayOfYear TGregorianCalendarDate_GregorianDateSetDayOfYear
  539.     #endif /* _GregorianDateSetDayOfYear */
  540. #endif /* SOMGD_GregorianDateSetDayOfYear */
  541.  
  542. /*
  543.  * New Method: GregorianDateGetWeekOfYear
  544.  */
  545. typedef UInt16   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateGetWeekOfYear)(TGregorianCalendarDate *somSelf, Environment *ev);
  546. #define somMD_TGregorianCalendarDate_GregorianDateGetWeekOfYear "::TGregorianCalendarDate::GregorianDateGetWeekOfYear"
  547. #define TGregorianCalendarDate_GregorianDateGetWeekOfYear(somSelf,ev) \
  548.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateGetWeekOfYear) \
  549.     (somSelf,ev))
  550. #ifndef SOMGD_GregorianDateGetWeekOfYear
  551.     #if defined _GregorianDateGetWeekOfYear || defined __GregorianDateGetWeekOfYear
  552.         #undef _GregorianDateGetWeekOfYear
  553.         #undef __GregorianDateGetWeekOfYear
  554.         #define SOMGD_GregorianDateGetWeekOfYear 1
  555.     #else
  556.         #define _GregorianDateGetWeekOfYear TGregorianCalendarDate_GregorianDateGetWeekOfYear
  557.     #endif /* _GregorianDateGetWeekOfYear */
  558. #endif /* SOMGD_GregorianDateGetWeekOfYear */
  559.  
  560. /*
  561.  * New Method: GregorianDateSetWeekOfYear
  562.  */
  563. typedef void   (SOMLINK *somTD_TGregorianCalendarDate_GregorianDateSetWeekOfYear)(TGregorianCalendarDate *somSelf, Environment *ev,
  564.         UInt16 weekOfYear);
  565. #define somMD_TGregorianCalendarDate_GregorianDateSetWeekOfYear "::TGregorianCalendarDate::GregorianDateSetWeekOfYear"
  566. #define TGregorianCalendarDate_GregorianDateSetWeekOfYear(somSelf,ev,weekOfYear) \
  567.     (SOM_Resolve(somSelf, TGregorianCalendarDate, GregorianDateSetWeekOfYear) \
  568.     (somSelf,ev,weekOfYear))
  569. #ifndef SOMGD_GregorianDateSetWeekOfYear
  570.     #if defined _GregorianDateSetWeekOfYear || defined __GregorianDateSetWeekOfYear
  571.         #undef _GregorianDateSetWeekOfYear
  572.         #undef __GregorianDateSetWeekOfYear
  573.         #define SOMGD_GregorianDateSetWeekOfYear 1
  574.     #else
  575.         #define _GregorianDateSetWeekOfYear TGregorianCalendarDate_GregorianDateSetWeekOfYear
  576.     #endif /* _GregorianDateSetWeekOfYear */
  577. #endif /* SOMGD_GregorianDateSetWeekOfYear */
  578. #ifndef SOM_DONT_USE_INHERITED_MACROS
  579. #define TGregorianCalendarDate__get_fCalendarRef TCalendarDate__get_fCalendarRef
  580. #define TGregorianCalendarDate__set_fCalendarRef TCalendarDate__set_fCalendarRef
  581. #define TGregorianCalendarDate_somUninit SOMObject_somUninit
  582. #define TGregorianCalendarDate_somDuplicateReference SOMObject_somDuplicateReference
  583. #define TGregorianCalendarDate_somCompareReference SOMObject_somCompareReference
  584. #define TGregorianCalendarDate_somRelease SOMObject_somRelease
  585. #define TGregorianCalendarDate_somFree SOMObject_somFree
  586. #define TGregorianCalendarDate_somCanDelete SOMObject_somCanDelete
  587. #define TGregorianCalendarDate_somGetClass SOMObject_somGetClass
  588. #define TGregorianCalendarDate_somGetClassName SOMObject_somGetClassName
  589. #define TGregorianCalendarDate_somGetSize SOMObject_somGetSize
  590. #define TGregorianCalendarDate_somIsA SOMObject_somIsA
  591. #define TGregorianCalendarDate_somRespondsTo SOMObject_somRespondsTo
  592. #define TGregorianCalendarDate_somIsInstanceOf SOMObject_somIsInstanceOf
  593. #define TGregorianCalendarDate_somDispatch SOMObject_somDispatch
  594. #define TGregorianCalendarDate_somClassDispatch SOMObject_somClassDispatch
  595. #define TGregorianCalendarDate_somCastObj SOMObject_somCastObj
  596. #define TGregorianCalendarDate_somResetObj SOMObject_somResetObj
  597. #define TGregorianCalendarDate_somPrintSelf SOMObject_somPrintSelf
  598. #define TGregorianCalendarDate_somDumpSelf SOMObject_somDumpSelf
  599. #define TGregorianCalendarDate_somDumpSelfInt SOMObject_somDumpSelfInt
  600. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  601.  
  602. #endif       /* SOM_TGregorianCalendarDate_h */
  603.